package com.liangtian.mdm.material.dao;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.liangtian.mdm.base.BaseDao;
import com.liangtian.mdm.material.model.WlLb;

/**
 * 物料类别维护操作接口类
 *
 
 * @since 2016-9-29
 */
@Repository
public interface WlLbDao extends BaseDao<WlLb> {

    public List<WlLb> getWllbTreeByPermissionCond(WlLb wllb);

    public List<WlLb> getWlLbListByCond(Map<String, Object> wllb);

    public int insertWlLb(WlLb wllb);

    public int checkWllbbmExist(Map<String, Object> map);

    public int checkWllbmcExist(Map<String, Object> map);

    /**
     * 批量删除物料类别
     *
     * @param map
     * @return
     
     * @date 2016-10-11
     */
    public int deleteWlLbByIdS(Map<String, Object> map);

    public WlLb getWlLbById(WlLb wllb);

    public int checkCodeUpdate(Map<String, Object> map);

    public int checkNameUpdate(Map<String, Object> map);

    public void updateWlLb(WlLb wllb);

    public List<WlLb> getWllbQtSelectListByCond(Map<String, Object> wllb);

    public int insertWllbUpdateBg(Map<String, Object> map);

    public void insertWllbUpdateQt(Map<String, Object> map);

    public int getEditCountByLbbm(Map<String, Object> map);

    public int updateWlLbByWork(Map<String, Object> map);

    /**
     * 插入分发数据
     *
     * @param map
     * @return
     
     * @date 2017-03-20
     */
    public void insertWllbDis(Map<String, Object> map);

    /**
     * 根据综合条件查询用户待审核的物料
     *
     * @param cond
     * @return
     * @author ly
     * @date 2017-03-21
     */
    public List<WlLb> getWllbListByCondSqSh(Map<String, Object> map);

    public int submitWlLbUpdateStateById(Map<String, Object> map);

    public List<String> getWlLbLbbmIdByLbbmS(String lbbm);

    public void tyWlLbByIdS(Map<String, Object> map);

    public void updateWlLbBg(WlLb wllb);

    public void updateWlLbBgLong(WlLb wllb);

    public List<WlLb> getWllbTreeByTzlQzKey(Map<String, Object> map);

    public List<String> getTzlQzKeyLbbms(String qzKey);

}
